package presentation.frame;

import javax.swing.JPanel;
import javax.swing.JScrollPane;

import presentation.redesign.*;

import data.entity.*;
import java.awt.Color;
import java.awt.Dimension;

public class MainPane extends Panel {
	private static final long serialVersionUID = 832779620815518040L;
	/**
	 * Create the panel.
	 */
	private JPanel map;

	public MainPane(UserEntity ue) {
		setForeground(Color.WHITE);
		
		Label lblNewLabel = new Label("welcome to Galaxy-Hitchhiker Travel System!");
		lblNewLabel.setForeground(Color.BLACK);
		lblNewLabel.setBounds(22, 12, 467, 34);
		add(lblNewLabel);
		
		
		map=new IndexMapPane(ue);
		JScrollPane scroll=new JScrollPane(map);
		scroll.setBounds(40, 51, 1000, 429);
		map.setPreferredSize(new Dimension(980, 710));
		add(scroll);		
		repaint();
	}
}
